fix mingw static link