Allow nokogiri and equivalent-xml for other Rubies, don't use RUBY_ENGINE.
Mark some XML canonicalization specs as pending for JRuby.