Fix build errors in travis.