Fix problems building with CodeBlocks/MinGW

- Fix searching for SDL2main
- Include cstring in MapCollision.cpp for memset()
- Include stdio.h in RenderDevice.cpp for fprintf()
Merge pull request #1080 from dorkster/windows

Fix problems building with CodeBlocks/MinGW