make compatible with haxe3
Merge pull request #4 from freakinruben/master

Haxe3 compatible