[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.