[Gtk] Fix Gtk2/3 version detection

This one provides some Gtk3 fixes and a corrected Gtk version detection (GtkWorkarounds).

(includes #387)