optimized findDependencies. tested on pc: cpu: intel i7 3.5Ghz 16GB ram, raid 10.
compile time in my small project with only 137 dependencies:
before fix: 217 seconds
after fix: 3 seconds
Merge pull request #5 from igor-bezkrovny/master

compile time optimized from 217 to 3 seconds