Fix compilation issues for PHP 5.5