librpc: fix compile errors with musl