Changes for new Rust 0.6 syntax

This also includes some minor cleanup like annotating `cast::transmute` calls.