fix gcc 4.8 compile issue