Supports unit dependencies.

This is necessary for ordering link-lines correctly when units specify
libraries in their 'def' flags.