[Gtk] Fix Gtk2/3 version detection + small Gtk3 fixes

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