[wasm] Add support in utils for TARGET_WASM.