Change to be compatible with php versions earlier than 5.3
Merge pull request #13 from bramley/pluginlib

Mantis 16865 - change to be compatible with php versions earlier than 5.3