Make lib osgi compatible

...es