Changes to work under Linux systems.

Change gzip, mktemp and compression code to work under Linux systems.

Squashes all of my Linux systems changes into one.