Add configurations to make library OSGi compatible