Fix GraphicContext compilation warnings