gcImageControl, UICoreMain: Adapt to wx2.9.5 changes