Ensure proper linking with OpenSSL with recent versions of MinGW.