fix mingw build on windows
Merge pull request #7 from wagut/win-mingw-build

fix mingw build on windows
SDLMAIN_LIBRARY works for clang/osx too
code style fix
code style fix