auto init the ticks if the GetTicks and the like methods are called before SDL_Init().. This prevents annoying game bugs such as caching SDL_GetPerformanceFrequency in a static initializer
Fixed for consistency with the other platforms
Fixed Windows build
Patched to compile with Visual Studio.