Fixed dependency files not being saved away if using -MMD or similar.
Fixed timestamps on object files extracted from archives during link.

This affects builds that use absolute paths to object files when adding to library archives, causing unnecessary archives.
Renamed outDep to out_dep.
Added test for change for issue #1732.
Merge pull request #1831 from dinibu/dependency-fix-1820

Further changes for issue #1732