Added support for GIFLIB. This closes #1