Fix compilation error for native client platform.
Merge pull request #5773 from dumganhar/master

Fix compilation error for native client platform.