Fixed build for emscripten