fix gnutls, fix msys32, take more libs from mingw