build: set  _POSIX_C_SOURCE before check funcs for clock_gettime.