Edits to allow transparent decompression of input files and to remove compile warnings on mac