openssl: Fix potential crash with ECDH on Windows