Fix GUI build with `--disable-wallet`

fe6bff2 and 65f78a1 broke it. Minor build changes.