fixes for wx-2.9