Use __EMSCRIPTEN__ for ifdefery, not EMSCRIPTEN.
Merge pull request #2877 from waywardmonkeys/incorrect-ifdefery

Use __EMSCRIPTEN__ for ifdefery, not EMSCRIPTEN.