[Toolkit.Graphics] Fix compilation issue