xdm: fix deps and build