Fix current_time_monotonic on OS X.

clock_gettime doesn't exist there, so
throw in some equivalent mach stuff.
libsodium header should only be included when libsodium is used.