Fixes the error with the dev version of haxe 3.2.0 https://github.com/HaxeFoundation/haxe/issues/3150
Merge pull request #1226 from mrcdk/haxe3.2_fixes

Fixes the error with the dev version of haxe 3.2.0