Update cmake files for mac build