Fix static link library

with some mingw version (posix threads? win32 threads?)
-static-libstdc++ -static-libgcc is not enough