some functions that emscripten's libc is currently missing