Corrections to be compiled without errors with gfortran