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

Fix build on FreeBSD