Pass external dependencies to dependency file generator

Creating the dependency runs the preprocessor and external header dependencies
need to be available beforehand.