Modify dependencies for Ubuntu 12.04 on Travis CI.