Move use of libgif out of generic header

Might fix http://bugs.libming.org/show_bug.cgi?id=120