[emscripten] Fixing compilation errors.
Merge pull request #3321 from dumganhar/develop

[emscripten] Fixing compilation errors.