Fix cmake build.