Compatibility fixes for wxWidgets 2.9
utildlgs.cpp merged