Initial import.
Sort of support monotonic clock in pthread_cond_timedwait().