Fix usage of memset from std name.
Fix compilation with Emscripten.