Make build.common BSD friendly
Fix broken gmake/make test