[swftools] Fix build with giflib >= 5