diff --git a/System/Crypto/Random.hs b/System/Crypto/Random.hs
--- a/System/Crypto/Random.hs
+++ b/System/Crypto/Random.hs
@@ -38,6 +38,16 @@
         CryptGenRandom(hCryptCtx, 128, randomArray);
         CryptReleaseContext(hCryptCtx, 0);
 -}
+
+import Data.ByteString.Internal as B
+import Data.Int (Int32)
+import Data.Word (Word32, Word8)
+import Foreign.C.String (CString, withCString)
+import Foreign.Ptr (Ptr, nullPtr)
+import Foreign.Marshal.Alloc (alloca)
+import Foreign.Marshal.Utils (toBool)
+import Foreign.Storable (peek)
+
 newtype CryptHandle = CH Word32
 
 -- Define the constants we need from WinCrypt.h 
diff --git a/crypto-api.cabal b/crypto-api.cabal
--- a/crypto-api.cabal
+++ b/crypto-api.cabal
@@ -1,5 +1,5 @@
 name:           crypto-api
-version:        0.1.2.3
+version:        0.1.2.4
 license:        BSD3
 license-file:   LICENSE
 copyright:      Thomas DuBuisson <thomas.dubuisson@gmail.com>, Dominic Steinitz (see Data.LargeWord module)
