fix cmake flags