Well, I have a work around. I basically took all the code in stdlib.inc and put it into application.inc instead and it works. Not exactly what I wanted to do, but it fixes the issue.
Let me explain in detail, in case someone else has this issue:
All PHP files reference...