get build scripts/makefiles sorted out