misc build script changes