undefined reference when using gfortran to compile fortran 77 code http://askubuntu.com/q/299843/161614?sem=2