middleware cpp component build script changes