Liver damage? Hardly likely, unless you've got cirrhosis/hepatitis/other serious existing liver problems. AFAIK, it's supposed to belong to the newest, most harmless generation of azoles.
As to gut flora, probiotics+prebiotics+ healthy Diet should restore it just fine if you're healed and well.