Add some bits for building on FreeBSD
Merge pull request #2 from pgj/master

Allow the package to build and run on FreeBSD