some non breaking haxe 3 compatability changes

Not got them all but this shoudl cover, markers, options, events and animations at least.