Optimized EC_METHODs need specific 'set_curve' and 'free' functions.