errors fixed in build scripts