Viscous and diffusive effects in magnetoplasmadynamic flows