Fix for Haxe 3.0