fix dependencies of emscripten build