fix cmake scripts