Libya confirms new prime minister after confusion