Check C++ compilation