Use static libdm so dmsetup and lvm can be linked dynamically.Change LIBDM_* to LIBDEVMAPPER_* so LIBDM can refer to libdm.