idevice: Use more reliable version check macro for OpenSSL 3 specific things

OpenSSL versions pre 3.0 do not define OPENSSL_VERSION_MAJOR etc.
diff --git a/src/idevice.c b/src/idevice.c
index 12d9bb3..03e2c40 100644
--- a/src/idevice.c
+++ b/src/idevice.c
@@ -1205,7 +1205,7 @@
 		SSL_CTX_set_max_proto_version(ssl_ctx, TLS1_VERSION);
 	}
 #endif
-#if (OPENSSL_VERSION_MAJOR >= 3)
+#if OPENSSL_VERSION_NUMBER >= 0x30000000L
 #if defined(SSL_OP_IGNORE_UNEXPECTED_EOF)
 	/*
 	 * For OpenSSL 3 and later, mark close_notify alerts as optional.