(Apple) Properly implement apple_gfx_ctx_init/apple_gfx_ctx_destroy