Added -lrt to fix undefined references to clock_gettime on some systems