dmap: support libdmapsharing-4.0 API
This adds support for libdmapsharing's 4.0 API without removing support for the earlier API. The newer version takes priority if both versions exist on the build host.
Signed-off-by: W. Michael Petullo mike@flyn.org