Removed main.h dependency from rpcserver.cpp