Fix gcc link when compiling in Travis