Fix cmake build with travis.