Fix dependency API compatibility