fix(fortran): make compile_command() impure
The compile_command() function invokes the iso_fortran_env module
function compiler_version(). The Fortran standard does not
guaranteed that iso_fortran_env procedures are pure even though
every tested compiler other than LLVM flang treats compiler_version
as pure.