make ProjectClassLoader to work in an osgi environment