It seems to be necessary for me compiling on MinGW to statically include /usr/lib/libSDL.dll.a