Unify Map struct common to server and client in src/common/map.h.