Apply backported patch for https://bugs.ruby-lang.org/issues/8384 to allow building against newer OpenSSL versions shipped with CentOS