Install dependencies earlier on Travis.