Fix class scope for PHP 5.3