Fix compiling without clock_gettime