Fix for Haxe 2.10 and Haxe 3