Add -lrt for clock_gettime.