Libyan rivals agree to further military talks, U.N. says