wx3.0: rename some deprecated API call

Avoid various gcc warning

Note: Compatible with recent wx2.8 version