Add OS X support

Use mach_absolute_time and mach_timebase_info to get a monotonic clock
on OS X.

See https://developer.apple.com/library/mac/qa/qa1398/_index.html for
additional information from Apple on the functions used.