Import to_{be,le}{32,64} from std::mem since they are now visible there
Fix fallout from Rust closure borrow changes
Merge pull request #32 from DaGenix/fixups

Fixups for recent Rust changes