OSGi classloader fix for resource loading