fix compile erro for gcc-4.2