Isolate D3D and Software Renderer from wxWidgets code