Fixed MAC build with cmake