Because clock_gettime is found in librt, we need to link to that when
doing the check. A check with AC_CHECK_FUNCS fails.

Note: This will change with the glibc 2.17 release. The clock_* symbols
are being moved into libc and code will no longer need to link against
librt.