Fix errors in case of PHP 5.5 usage.