language changes: std::cast is merged to std::mem.

also includes a workaround for mozilla/rust#14088.