Fix build under Mac OS X

- No clock_gettime on Mac OS