fix C++ (MSVC) build