Get it compiling.

It still doesn't work, though; Emscripten strips some of my helper functions!