Add OS X implementation of monotonic clock

Taken from 
https://bitbucket.org/haypo/misc/commits/164782a76bbff5cca8b856aa0c89b44f8b8a4498a, 
thanks to kovidgoyal

Untested