Convert printf statements in the code to eprintf. (There shouldn't be many... we should be using structured error-handling most of the time... but there are few places with printfs surrounded by if false.)
eprintf is more appropriate in a Wasm environment.