Add FreeBSD support for the makefile

This relies on using gmake instead of make
Merge branch 'freebsd'