On structural instabilities in itinerant magnets and superconductors