add support for Rubinius, JRuby (1.9+ mode)