fix cmake mac os x