fix build on multiple versions of wx-config