Mac OS X doesn't support clock_gettime
Patch makefiles for building on Mac