openssl compilation fix - patch from ruby/ruby#GH-488