FreeBSD support

FreeBSD ships with its own make program that is not compatible with the Node makefiles. This patch makes it use gmake when available.