win32: add preliminary rgui support to d3d