Build fix for Mac - CLOCK_REALTIME not found.

Was getting compile failures on Mac OS X, got a solution from: http://stackoverflow.com/a/9781275/441352