move impl of clock_gettime for os x to sys.c