Port to haxe 3 and OpenFL