FreeBSD support for FoundationDB

I’m happy to accept PRs for things you needed to fix to get working on FreeBSD.

I’d highly suggest running a large number of simulation tests on FreeBSD before considering it working and finished. It wouldn’t be surprising if there’s something platform-specific that breaks determinism or somehow causes test failures. See this thread for a bit more information on how to do so, if you haven’t already.