enhance link_staticlib test for QBS-294

Fix follows.

Change-Id: I79e34e460710c3ea17bef397eace6b65d004d0e9
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
fix static library dependencies

Task-number: QBS-294

Change-Id: Ie285cb98db052176a563f52a187279b5dae4c1bf
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>