Fix cmake build script