Added php < 5.3 backwards compatibility

"static" can not be used like that in environments using earlier versions than 5.3