Fix types for struct timespec.