configure: add --disable-shm to disable use of shm