Make it possible to use wxGCDC without a display. See https://github.com/wxWidgets/wxWidgets/pull/1044