Use -O1 on WASM debug builds as they are otherwise too slow to run.