Support for giflib 5+