Fix for building on latest nightly.

Fixes various issues related to move vs clone and obsolete syntax in
tests (`spawn(proc() {` instead of `spawn(move || {`).