Use FC instead of CC to link the dynamic library on OS X

Avoids problems of libgfortran not being found.