Fix linking of static libraries with relative paths.

Task-number: QBS-327

Change-Id: I12552c582e6e61f613c2249077c1db42854d548c
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>