fix cmake build warnings