Merge pull request #28 from jbeich/bsd

Unbreak on BSDs