[FreeBSD]: supported

Patch set with changes for building on FreeBSD.