Link dependencies after the project libraries

The project libraries will probably contain symbols that are defined
in those libraries -- the previous way of writing it depended on
some other code adding the same libraries again, and was fragile.
Merge pull request #7 from rolk/007_link_order

Link dependencies after the project libraries