Sometimes analysing a core file isn't easy due to shared memory pools. Let's add a build option to disable this. It's not enabled by default, it could be backported to older versions.