mac compile how to