Fortran compiler fixes from Peter Koval.