fix compiling error on linux
Merge pull request #5714 from minggo/master-fix

fix compiling error on linux