Patched to compile on non-Emscripten targets.
Patched to compile on Windows.
Maybe patched to compile on Windows for real now?