Porting to Haxe 3
Merge pull request #5 from as3boyan/master

Porting to Haxe 3