Make DRI dependencies and build depend on the target