Added changes for 0.3.1.
Deal with uintptr_t bug in 64-bit JRuby.
Version bump.