Update config.m4

Update to check/accept wxWidgets 3.1 as well as 3.0 branch.