src: Convert IStream wrapper to C, and add it to the thumbnailer