Seems like swapping osgi.core by felix make the compilation possible.
OSGi support is brought back.