Add support for FreeBSD in makefile

Thanks to Leryan. See issue #78.