rpc.h: Use the correct exception definitions when USE_COMPILER_EXCEPTIONS is set.