Unexport main variables.
Fix bug where double wrap io.Writer with gzip writers.