Fixed emscripten build error.

Recent commits have broken emscripten build.