Include guilib/GraphicContext.h and don't assign NULL to int

Fixes: #14501
Merge pull request #2977 from smspillaz/fix-14501

Include guilib/GraphicContext.h and don't assign NULL to int