Added FreeBSD support

Might, maybe work. Possibly. Needs testing.
Merge pull request #8 from evhub/patch-9

Added FreeBSD support