Updating mingw flags for static linking