JRuby fixes for travis