Fixed cmake error on mac install