Giflib 5.1

update to compile with giflib >= 5.1