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()