diff --git a/HTF.cabal b/HTF.cabal
--- a/HTF.cabal
+++ b/HTF.cabal
@@ -1,5 +1,5 @@
 Name:             HTF
-Version:          0.12.2.0
+Version:          0.12.2.1
 License:          LGPL
 License-File:     LICENSE
 Copyright:        (c) 2005-2014 Stefan Wehr
@@ -233,7 +233,6 @@
                      text >= 0.11,
                      unordered-containers >= 0.2
   Default-language:  Haskell2010
-  Ghc-Options: -keep-tmp-files -tmpdir ./tmp
   Other-Modules:
     Foo.A, Foo.B, TestHTFHunitBackwardsCompatible
 
diff --git a/Test/Framework/QuickCheckWrapper.hs b/Test/Framework/QuickCheckWrapper.hs
--- a/Test/Framework/QuickCheckWrapper.hs
+++ b/Test/Framework/QuickCheckWrapper.hs
@@ -58,9 +58,14 @@
 import qualified Data.List as List
 import System.IO.Unsafe (unsafePerformIO)
 import Data.IORef
+#if MIN_VERSION_QuickCheck(2,7,0)
 import System.Random
+#endif
 
 import Test.QuickCheck
+#if !MIN_VERSION_QuickCheck(2,7,0)
+import Test.QuickCheck.Property (morallyDubiousIOProperty)
+#endif
 import Test.Framework.TestInterface
 import Test.Framework.Utils
 
