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 || {`).
Merge pull request #1 from BenTheElder/master

Fix for building on latest nightly.