Add JRuby-compatible alternatives for dependencies.
Don't assume RDiscount is available.
Remove jruby-openssl gem, as it is now included in JRuby.