Fix libraries order for mingw32 and SDL2main / SDL2