Fixed for compatibility with wxWidgets 2.8.x.