Fixed cmake warning on os x