add \n at the end of compressed gz files to prevent empty compressed gz files
removing an unneeded '#if'
Merge pull request #79 from gfgtdf/msvc-fixes

adding a \n at the end of compresses config files to prevent creating corrupted files.