Fix seek operations with native zlib support. Without this fix creating
images from gif files inside a starkit would frequently fail with an error
message of: couldn't read GIF header from file XXX.