Revert to nme and port to Haxe 3