This patch adds a shim for missing time functions on z/OS, and adds a layer of indirection to account for differences in the timespec struct on different systems. This was originally committed as173b51169band reverted in777ca48c9fbecause the original commit also checked-in unrelated changes. Differential Revision: https://reviews.llvm.org/D87940