GIF 4.1.6 introduced version macros in the header file. Use them to get a full version. Fixes #16196.