Fixed mingw32 build linking