Attempt to fix #18465. This also trims the RPC code out of the bitcoin-wallet
build.
The build currently fails for bench_bitcoin
for reasons I can’t figure out.
Also, I’m not really sure what is needed for MSVC.
Chasing Concept ACKs for now (or ideas for alternative directions, please post to #18465 )