Add makefile, with a few updates to Fortran source to compile with gfortran