Fix PHP5.5 warnings