Fixing travis java6 compiler errors.