Fix the build error with wxWidgets 2.8.12.