fix cyclic header relationship mem_op.h <-> shared.h