Fixed compiling examples c++ compiler.