re-implemented s_eoprot_rom_entity_offset_of_tag() so that it works with pointer arithmetics and does not have portability problems with 64-bit architectures.
changed also the type of eoprot_ep_entities_defval and similars (not uint32_t* but void*).