Porting to haxe-3.0
Merge pull request #3 from raistlin/haxe-3.0

Porting to haxe-3.0