patches: added support for giflib 5.1+