Syntax fixes for PHP 5.5

Tested on PHP 5.5.6