https://github.com/Joda89/xsilium-engine optimized for visual studio 2010