Moved Fortran compiler check to enable either gcc or clang compilation