Add shm to PATH and -O0 to cabal