fixing cmake error for mac