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.