Making lib compatible with haxe 3.