Fix a compiler warning about shadowed declarations.
Fix reporting of errors with open and dup in RPC_unix.