swarm: Make it compilable.
swarm: Fix Blackhole's deprecation warnings.