Fix compile for some versions of Haxe