build: Fix logic of clock_gettime() check