Fix emscripten compile issues
Merge remote-tracking branch 'origin/master'