Support PHP5.4 + CakePHP2.4.x (patch from kouchi@BSSZ)