Enable Examples Compilation with C++ Compiler