osx does not have CLOCK_REALTIME

Hi,

I am working on integrating your library into my project... I am using OSX and it did not compile because `clock_realtime` is missing. So I added a special case.