How Libya became Muslim