Improved default class loading strategy.