ruby186: further openssl patches

Fixes #550.
ruby182: further openssl patches