do not switchify illegally-typed switches
try to use console.log even in workers
Fix using emcc -E.

We don't want to pass this extra flag to emcc as it breaks when
doing EMCONFIGURE_JS=1 emconfigure ./configure ...