Upgraded to Haxe plugin 4.1.1 and TypeScript 2.2.1