Fix BSD stuff
Merge pull request #17 from jaccarmac/fix-bsd

Fix BSD stuff