updated for haxe 3
updated package script