Replace const to define for compatability with old PHP versions