Add support for FreeBSD.
Merge pull request #166 from olear/master

Add support for FreeBSD.