Improved static file streaming and fix a bug with the gzip lib