Remove boost::bind and boost::function in rpc.cpp.