Fix build for latest Rust and switch to -O

I've tested a couple of programs, and switching to `-O` from `--opt-level 3` seems to either do nothing (_e.g._ `cksum`) or make the programs faster (_e.g._ `tr`).