[build] Add subdir depends so that libs are built first

The resourceqt-client and some of the tests link to the just-built libs,
so they can't be built in parallel with them.
Merge pull request #8 from amtep/master

[build] Add subdir depends so that libs are built first