Fixing dependency resolution when used as dependency