Fix build errors (Travis CI)