compat: add timespec_get() replacement