Potential fix for module permission issue (under OSX?).

This change has the ModuleClassLoader obtain the classloader of a loaded class in a privileged execution block - hopefully avoiding the permission error seen under OSX.