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

fix compiling error on linux