Added emscripten cross-compiling support