I'm trying out a fix that has the include() function return the resources for the classes that it included. This changes several places in the code, but I think has some good side effects. It also pointed out that more than half of the include function doesn't seem to be needed, since all of the error checking is done by the compiler method it calls.