some fixes to wxwidgets