Fixes travis build.

Adds the needed dependencies and fixes the travis build.