Our own functions don't seem to work with the latest gcc,
so it seems to make sense to use the glibc versions which
should be equivalent and maintained.
Now setup scripts should accept a controller argument if
desired. Add two failover tests to tests.txt, but third test
(controller stops responding) is experimental for now.