fixed compile issue with gcc 4.7