FreeBSD support and general Makefile flexibility