Adding OSGi support to the library.