Pass the test suite

I still don't know what the problem with jRuby is.

I've asked online about it: http://stackoverflow.com/questions/14362662/ffi-
code-segfaults-in-jruby-but-not-mri-ruby