another series of rpc 64bit fixes