Install optimization dependencies for Travis builds