fix C++ build