dealing with ugly linking

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jolla.com>