Change gzip to work correctly under Linux systems.
Fix mktemp command to work under Linux systems.
Update compression code to work under Linux systems.