Fix declaration of dmap_version and dmap_version_string
Use memcmp to compare codes