Added support for giflib 5.1