Add JRuby-compatible alternatives for dependencies.
Don't assume RDiscount is available.