Prefix apt-get commands with travis_retry.

This is a workaround for network connectivity issues that can cause spurious errors sometimes. See http://blog.travis-ci.com/2013-05-20-network-timeouts-build-retries/