- adjusted to support giflib 5.0.x too