Use clock_gettime only if USE_CLOCK_GETTIME is defined. Replace WIN32 instead of _WIN32.