Add basic dependency tracking for static libraries and executables.