fix compile compatibility with wxWidgets-2.9.4