Emscripten workarounds and llvm syntax fixes