Local workaround for Fedora not including our EC curve.

Modified slightly from a patch by backslash@bitcointalk.org to avoid crashing. This copies
enough of the openssl implementation to make things work, so isn't suitable for submitting
upstream.