Clean up old leftover code. Fixes https://github.com/kripken/emscripten/issues/1787.