mingw library tweaks