Fixed uses of relative time for cnd_timedwait.
Added CLOCK_REALTIME to clock_gettime emulation.