Fixed the build scripts.