Remove obsolete uses of HAVE_SHM.