Fix compilation on systems without ecdh_curve