preserved original mac cmake build