Compactification and supersymmetry in d = 11 supergravity