Fix segfault when EC group not supported by OpenSSL library, fixes issue #8