Libyan rivals agree to hold elections on Dec. 10