fix build on nightly (2014-12-12). fixes #43

No idea if this fixes #44 as well, I haven't had chance to update Rust. Tests pass on my machine, there's a bunch of warnings about types that could implement `Copy` though.