fixes for openssl stuff
better jruby support