makes lib haxe3 compatible