[mac] Add WIP patch - please anyone finish the gcc patch