Fixed segfault.
travis: use apt-get -y option instead of GNU yes
The Advanced Packaging Tool has an option to automatically assume Yes to all queries. We don't
need to use GNU yes for this.
travis: use -q instead of -qq to prevent travis from sometimes timing out on long apt-get updates