Light scattering studies of magnetostructural phases in Mn3O4 and charge density wave melting in ZrTe3