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 #1079 from dorkster/windows

Fix problems building with CodeBlocks/MinGW