[ruby] fix openssl 'EC_GROUP_new_curve_GF2m' undeclared

https://github.com/ruby/ruby/commit/0d58bb55985e787364b0235e5e69278d0f0ad4b0#diff-545c9f5eeeb5a48a7c7cb1f219015322