Correct wxWidgets 2.9 build errors/warnings.