patch mac compilation