minor fixes in build scripts