Improve the fix for not building the fortran.