Changed UI, Game and CGame so they can be compiled as C++

TODO: Fix Quake3