I believe there is not a practical way to use shielding against DC
magnetic interference as the shielding material itself will interfere
with the compass. Here is a web reference that says as much and
provides some instruction on compensating and swinging a compass.
http://www.bellanca.us/compass.pdf
These days many of us rely entirely on GPS and don't even bother
installing a compass.
Steve Koerner