Add clock_gettime() emulation.