zhttpto using rust 0.12

Changes I had to make to get the program to compile on with `rustc` 0.12. I know the class is thought in an older version so this is probably useless to you, but it might help someone else looking for it.