remove dependence of CoreGraphics for on mac
Merge pull request #8107 from minggo/mac-remove-unneeded-lib

[ci skip]remove dependence of CoreGraphics for on mac