updated changes needed to make tool compile using gfortran 4.8 on windows without warning