Some haxe 3 compat. cleanup.