Added support to giflib 5.1