Add HAVE_CLOCK_GETTIME guard to clock_gettime.c (#2428)