Anyone interested in this area should also know that above ~2 kHz it doesn't matter what you do for magnitude equalization because you'll be dominated by sub mm variations in position and direction. The only way to get any amount of repeatability above 2 kHz is with IEMs.
This is dealt with by smoothing the spectrum in a way to preserves the power density. The constructive and destructive interference then cancel each other out.