Support Haxe 3

There are minor changes to support Haxe 3, such as the json haxelib file
and property getters names.