Try to fix warnings in PHP 5.4+