fixed some minor error for haxe3.1.1

thanx for the great work