Enable build on FreeBSD
Merge pull request #2 from ebfe/freebsd

Enable build on FreeBSD