make compatible with wxWidgets 2.6