Work around a Module::Build bug in RHEL 5

Work around a bug in the Module::Build version that comes with RHEL 5
in passing compiler and linker flags to the Perl module build.

Change-Id: I3ef758a53a09bd4818e89e6cb0c38024a7151654
Reviewed-on: https://gerrit.stanford.edu/1278
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
Don't report the legacy port on connection errors

When we support port fallback (when the port argument to remctl_open
is 0), we first try the current port and then the legacy port.  This
meant that the reported connection failure error message always
specified the legacy port.

Change this by remembering the error from the first connection and
reporting it if the legacy connection also fails.  This avoids
encouraging people to set up firewall rules for port 4444 or otherwise
chasing the wrong problem or using the legacy port where they shouldn't.

Change-Id: I9a5078cbfb61cfeaf9aa017782985b3f6520dd12
Reviewed-on: https://gerrit.stanford.edu/1295
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
Fix test case when localhost resolves to ::1

On some systems, localhost may be mapped in reverse DNS to ::1
instead of 127.0.0.1, which broke the server environment test.
Accept either.

Change-Id: Ibce4dc9194ccb215ba0c636cd45d9f074f4018de
Reviewed-on: https://gerrit.stanford.edu/1296
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
Keep the autoconf cache directory after autogen

My new standard is to keep the cache rather than forcibly deleting
it on every run.

Change-Id: I500383876dc4a3af75e8ae934fc948c3c927a91d
Reviewed-on: https://gerrit.stanford.edu/1297
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
Update Perl module versions for 3.7

Change-Id: I98b852b25ab9a296d15079c898cc244e14b031fe
Reviewed-on: https://gerrit.stanford.edu/1298
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
Resynchronize TODO with JIRA and add new items

Change-Id: I584083822e9577464175f08f94181cc3e721cc48
Reviewed-on: https://gerrit.stanford.edu/1299
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>