fixes from testing on openbsd
-didn't have to use gmake
-bash only needed for test.sh