Libyan premier says government to continue to function until elections