get it building on latest rust
generate correct code