Export some functions to emscripten