Fixed compilation problems with rust nightly in codegen/main.rs