fix bug undefined reference to clock_gettime