Fixing some build scripts.