Fixes topological sorting under Python 3.

The implementation of the topological sort uses 'map' which is lazy in Python
3.  This commit forces the evaluation.
Correctly orders the test linkline.

This commit orders the dependent library after listing the test driver file.