Fix segmentation fault when opening an image on Wayland
Gpicview segmentation fault when opening an image on Wayland
Applying the patches fixes the main issue, adding support for Wayland. And the other issue related to AM_GLIB_GNU_GETTEXT, which applies the solution found here