Support more rubies

Support JRuby and Rubinius.