Fixed hanging on non-gzip file. Turned out to be a compiler bug.