[bindings] Check for a wasm32 target before compiling in genbindings