[Bug 509940] Cmake can't build sdl program with mingw32