Support JRuby & Rubinius in 1.9 mode