fixes in build scripts