Add JRuby support

This pull request allows to run the racc binary under JRuby (we use that on CI), and also to use the Ruby parsing runtime from the gem if it's more recent than the one in stdlib.

The gem owner (@tenderlove?) will still need to push the -java gem file for this to work.