fix fortran compiling