Bug fix #44: giflib-5.1.0 compatibility

Fix giflib-5.1.0 compatibility. Thanks to devsnd for patch. (#44)
Merge remote-tracking branch 'upstream/master'

Conflicts:
	src/img-gif.c