Bug fix #44: giflib-5.1.0 compatibility

Fix giflib-5.1.0 compatibility. Thanks to devsnd for patch. (#44)