Libyan premier to hand over power