TRIPOLI (AFP) - Libya's new prime minister pledged his interim government would set respect for human rights as its priority, as the UN warned against the proliferation of arms looted from Muammar Gaddafi's huge stockpile. Abdel Rahim al-Keib, an academic and wealthy businessman who is a native of Tripoli, was elected interim prime minister in a public vote carried out by the members of the National Transitional Council (NTC) on Monday night. Keib told a news conference shortly after beating four other candidates in the vote that he would set human rights as a priority. "We guarantee that we are going to build a nation that respects human rights and does not accept the abuse of human rights. But we need time," he said. Keib spent decades abroad as an opponent of Gaddafi before joining the pro-democracy revolution that overthrew him. He replaces Mahmud Jibril, who resigned three days after Gaddafi was captured and killed when NTC fighters overran his hometown Sirte on October 20. "This vote proves that Libyans are able to build their future," NTC chairman Mustafa Abdel Jalil said after Monday's vote. Under a political roadmap, Keib now has until November 23 to form an interim government that, parallel to the NTC, will run Libya for eight months after which elections for a constituent assembly will be held. At that point the interim government and NTC will disband, giving way to a "general national congress" that the constituent assembly will form to run the country until parliamentary and presidential elections are held. Keib spoke only days after a demonstration by men in the highly conservative eastern city of Benghazi demanded that Islamic sharia law must be the basis of legislation in newly liberated Libya. On October 23, Abdel Jalil said sharia would be Libya's principal law. "Any law that violates sharia is null and void legally," he said, citing as an example the law on marriage passed during the slain dictator's tenure that imposed restrictions on polygamy, which is permitted in Islam. Abdel Jalil's comments have provoked criticism and calls for restraint from abroad amid fears the Arab Spring may give rise to a potentially intolerant Islamist resurgence. Ahmed al-Moghrabi, a prayer leader at a Benghazi mosque, said at Friday's demonstration that Libya was "not concerned (with) what Western countries" feel about sharia. "Our revolution was carried out by our boys not the West. We don't look at the West. We do what we want to do," he said.