Fix compilation issue on gcc490.
Merge pull request #4575 from ktf/fix-gcc490

Fix compilation issue on gcc490.