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.