demux_gif: support giflib 4.2 and newer

- use PrintGifError from 4.1.x if build against 4.2;
  since 5.0 GifErrorString takes int as argument to find error msg
- file openers like DGifOpen require third argument to pass error code
  when function returns NULL