Fix build with graphics/giflib available in pkgsrc-2014Q2 (giflib-5.1.0).
Patch from upstream git repository.

PKGREVISION++