OS X compatibility

I made a few changes to make hammer build on OS X.

`clock_gettime` doesn't exist on OS X, so I had to use something else to measure the time in `benchmark.c`. Currently it's measuring real time, and not CPU time. If that's a problem, I can try a different solution (see comments).