Fix some of compiler problem for Haxe 2.10
Add Generator.hx