Updated travis config to build dependencies.