search first for dependencies with matching headers