generate a dependency graph for determining which built-in functions/structs/constants to include and the order to include them in