Fix cmake dependencies