Fix build errors in Travis CI.