Dependency list refactoring. Part 1/2. Use queue(3) macroses.

replace homegrown linked list processing code with queue(3) macroses.
While here combine filename and inode number into common structure named
dep_item to reduce memory required for shallow list copy
Dependency list refactoring. Part 2/2. Path & inode -> dep_item.

Replace path and inode arguments with dep_item all over dependency list
diffing