FreeBSD Compat

This pull request has a couple tweaks that will allow Higgs to build and pass the tests on FreeBSD. I'll have to do more testing to see if there are any other problems, but at least it builds/passes for now.