Fix build on Rust master. Silence warnings. Add lint chekcs.