fix some broken things in the build script.