librpc: Add support for struct timespec