build: Update libgd to adjust for recent Adwaita/GTK+ changes