Haxe 3 compatibility + Update to latest tilelayer(github)