compatibility for C++ modules