fix build on BSDs
Merge pull request #1 from ebfe/build-bsd

fix build on BSDs