Fixed for gcc 4.7

I have modified compile issue on gcc4.7.