Fix almost all compile erorrs by degrading codegen.py for current nativa.rs(which will be regenerated by using rust-bindgen) bugs.