modify finding of wx-config and GTK2

* needed for Solaris build toolchain from pkgs
* find_program would find an installed wx-config
* we know we want the externpro version of wx-config, so use set() instead
* alternative way of finding GTK2 (needs to be verified on all our platforms)