(Apple) Make apple_gfx_context.c.inl more self-contained