fix cmake threads