When Abdurrahim el-Keib was a graduate student at N.C. State University, like many a future political figure he kept late hours, toiling night after night to put his lofty thoughts into inspiring words that might incite future generations to action. El-Keib, who was elected Monday as Libya's new prime minister by a national transitional council, is an electrical engineer with expertise in power distribution systems.