Fixed cmake problem on unix