fix some wx3.0 errors