uloop: add a clock_gettime() implementation for mac os x