fixed for API change in DGifCloseFile (giflib 5.1)