fix mingw static links