Updates for compatibility with Haxe 3.