added -static to mingw