haskell-stm: fix build with GHC 6.10.4