Made Makefiles suitable for gmake on FreeBSD.