Fix gzip file pointer (don't need a pointer to it).

Update to put declarations at start of functions, as per C90.