fixing strict warnings for php5.4