fix compile error
refact rpccodec