Fixed classloading if classes are not in the default classloader but tccl
Merge pull request #2307 from noctarius/fix-classloaderutil

Fixed classloading if classes are not in the default classloader but tccl (backport)