Added support for nanosecond timestamps and added macros to sniff out OS X