CGColor.h is included by that file but it's required only if ACCELERATED_COMPOSITING is enabled. So I think it'd make sense to include it only if the feature is enabled.
Created attachment 57755 [details] proposed patch
Turns out this was already fixed in r62128