Support both webkit2gtk-3.0 and webkit2gtk-4.0

https://bugzilla.gnome.org/show_bug.cgi?id=734327