Use 8 threads instead of 4.
Cache Ubuntu apt packages.
Install bc package to hopefully suppress "bc: not found" errors
Get apt packages before_install as suggested by Travis official docs