mac compilation