Fix test suite build with ghc 7.2