Fix initialization in ResourceManager.
Enable debugging in the windows build.
Change key state array constness.

Fixed for compatibility with upstream SDL2.