Fixed numerous compilations errors on Windows.
The engine won't start due a memory bad access error