Fixes compatibility to PHP version < 5.3.6