Long wave equations and metrizable Lie algebras