Check gretl packages for unused variables and functions, and also compile a first level dependency graph