Fixed RenderTarget::resetGLStates() not explicitly setting the default polygon mode (glPolygonMode) (#480)
Fixed VS 2005 CMake issue and added support for TDM compilers.