I believe you are using a version of PHP that does not support __DIR__. That is, before 5.3.0.
Unfortunately for you, I am also using namespaces so it won’t work for you at all.
I do not wish to support <5.3, so you will have to fix it yourself.
I will update the description soon to clarify this.