Remove some deprecated wxWidgets calls