Fix for wxWidets <2.9