Fix PHP5 strict warnings