fixes to the build script.