Use println! instead if printfmt!

printfmt! got removed from rust.
Don't use Mem{Reader,Writer}.buf

The field became private in current rust.
Merge pull request #18 from skade/master

Compatibility changes for recent Rust changes