Fix build with C++