Fixed build error with giflib 5.0

Newer giflib versions have a new ErrorCode parameter in several
functions, DGifOpen being one of them.