Handle Haxe 3 syntax change.