FYI, this does not build on my Mac.  It doesn't have CLOCK_REALTIME nor clock_gettime.  Can you use (or maybe end up copying if really necessary) __wt_epoch?