fix cmake build error