changes needed for wx-3.0, also tested with wx-2.8

Compiling with wx3.0 is fairly easy, only needs a few changes.