generalize to compile on mac

sorry for the few extra whitespace changes (from my editor).  
the content changes were changing the `delete[] a,b` syntax to `delete[] a; delete[] b;` and generlizing the cmake code for finding gfortran.