Fixes the error with the dev version of haxe 3.2.0 

https://github.com/HaxeFoundation/haxe/issues/3150