Fix cmake build script errs
Fix compile err