rename unknown item.flags to unk<bit_offset>
fix compilation (friend is reserved)