Test JRuby in 1.8 and 1.9 mode
No longer test on REE
Allow failure on ruby-head
Fix FFI usage on JRuby

FFI::AbstractMemtory#write_uint32 is not implemented in JRuby 1.7.4.