Wrap ECC static globals in EC_KEY_METHOD_NEW too.
diff --git a/ssh-pkcs11.c b/ssh-pkcs11.c
index de65144..a798fde 100644
--- a/ssh-pkcs11.c
+++ b/ssh-pkcs11.c
@@ -190,8 +190,10 @@
 
 static RSA_METHOD *rsa_method;
 static int rsa_idx = 0;
+#ifdef EC_KEY_METHOD_NEW
 static EC_KEY_METHOD *ec_key_method;
 static int ec_key_idx = 0;
+#endif
 
 /* release a wrapped object */
 static void