build: update to latest libgd

Fixes crash when window is closed.

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