Fix a unit test. It was trying to replace gethostname with a custom implementation, which newer versions of gcc don't allow (or at least not the same way).