PHP 5.4 Strict Standards fixes