Long-range magnetic dipole-dipole interaction mediated by a superconductor