Add mac patch to linux.