add unique pointer type in BufferedGzipStream