[c] build script with CXX support