workaround wxwidgets/msw bug