Fix the build with C++ where __builtin_types_compatible_p is not allowed.