librpc: Add support for struct timeval