extend FFI load to support JRuby and Rubinius