Update to latest rustc

These two commits fix only build errors, not deprecation warnings as I don't know what would be the best way to deal with deprecated `Encodable`/`Decodable` traits, should `num` depend on `rustc_serialize`?