Fish's patch to fix lots of portability issues.
Merge branch 'master' of github.com:hercules-390/hyperion
Final changes to build on FreeBSD.