Make the gemspec compatible with JRuby and enable spec runs under JRuby