Preserve correct order when deps are overriding
Don't compile deps too many times
Merge pull request #1715 from ericmj/mix-deps-order

Preserve correct order when deps are overriding