Fix osgi exports

Fixes #879