Add gfortran to the list of allowed fortran compilers.
Added automake checks to build in subdirs