Add fallbacks for systems without proper monotonic clocks (e.g. OS X).