Haxe3 

Migrating from haxe2 to haxe3 with minimal changes.