Clean up rustc warnings.

These are basically all straightforward changes and should not impact behavior of the language.
This is possibly changing semantics, since this includes android but the previous version did not. Although, maybe this is what we want.