Fix warning notices in PHP 5.5