Fix wxWidgets 2.9 assert errors.