Update SystemTools.h

Fixed error due to Boost iostream update (gzwrite/gzclose)