[so] store library name

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jolla.com>
error unit test is more accurate

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jolla.com>
dealing with ugly linking

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