[packages] php5: fix compile with older gcc