[travis] Fix build script and add missing dependencies.