Use static linking with mingw