Add generic POSIX implementation of C11 timespec_get.