libreplace: add clock_gettime replacement function for systems that don't have it