Revert "Remove "using namespace std;" from rpc.h, change code accordingly"

This reverts commit be28955857fc9b51164a662891ef3dee27226140.