Merge pull request #498 from utkarshkukreti/fix-wasm32

Fix building on wasm32 target.