Updated libs/dmem/ to latest version.