Updating code base to compile with Haxe 3.1.1