fixed for API change in DGifCloseFile (giflib 5.1)

Small API change (in a minor version of giflib) adding an error paramter to DGifCloseFile.