fixed compile issue of wxgtk.