update travis config to use cmake and fix dependencies