Changed wx initializing so it works on both 2.8 and 3.0