Add compatibility with Haxe 2.10

Hey,

I was able to fix compatibility with Haxe 2.10. Based on my experience with Haxe development builds, it should work fine there as well.