Fix non-PHP 5.2 constant usage