fix all compilation errors remainings, some haxe change to fix cpp
compilations bugs