Haxe 3.1.3 compatibility