CMake build for MinGW

Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
More fixes for CMake with MinGW. Copy SDL2.dll in post-build events.

Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>