Compare https://github.com/aseprite/aseprite/tree/master/third_party/giflib with giflib 5.1.0 and giflib 5.1.4 and import patches to this version.