Fix osgi madness

Smaller version of https://github.com/scala/scala-continuations/pull/1