Generalized Landau-Lifshitz systems and Lie algebras associated with higher genus curves