further changes for compiling game code as C++