Link with -static in mingw