Fix building libdmapsharing