Fixing Undefined reference to clock_gettime on RHEL6 Linux

I got an undefined reference for clock gettime on RHEL6, this is how I fixed it.