We must only link gtk2 if wx is also using it.