Fixed mingw dll issues