apple: Introduce a central compatibility header with all __APPLE__ quirks