giflib Lua+ffi binding (reading GIF files)