fix some compiler warning ,including no virtual dtor,unused return value;format xmemcpy code