Change Linux support to use the lower-level os functions. Also, add support for timestamps.