small build script fixes