dependency graph/list: stable sorting

Using python's set type results in non-deterministic module order. The result
is always correct, but it may vary from run to run.

This commit adds the '--stable-sort' option to shlibcc, which sorts modules
by name so that the resulting module order is "stable" (always identical for
the same input). Useful for comparing dependency lists, creating patches etc.