Fixing the build for BSD.
Merge pull request #2 from wrathematics/bsdbuild

Fixing the build for BSD.