[travis] speed up gcc build.