changes to compile game code in C++ mode