Haxe 3 compatibility.