diff --git a/Network/Wai/Handler/FastCGI.hsc b/Network/Wai/Handler/FastCGI.hsc
--- a/Network/Wai/Handler/FastCGI.hsc
+++ b/Network/Wai/Handler/FastCGI.hsc
@@ -1,5 +1,6 @@
 {-# LANGUAGE ForeignFunctionInterface #-}
 {-# LANGUAGE EmptyDataDecls #-}
+{-# LANGUAGE CPP #-}
 -----------------------------------------------------------------------------
 -- |
 -- Module      :  Network.Wai.Handler.FastCGI
@@ -24,7 +25,11 @@
 import Data.Word (Word8)
 import Foreign          ( Ptr, castPtr, nullPtr, peekArray0
                         , throwIfNeg_, mallocBytes, free )
+#ifdef GHC_7_4
+import Foreign.C        (CInt(..), CString, CStringLen)
+#else
 import Foreign.C        (CInt, CString, CStringLen)
+#endif
 import Control.Exception (finally)
 import Foreign.Storable ( Storable (..) )
 
diff --git a/wai-handler-fastcgi.cabal b/wai-handler-fastcgi.cabal
--- a/wai-handler-fastcgi.cabal
+++ b/wai-handler-fastcgi.cabal
@@ -1,5 +1,5 @@
 name:            wai-handler-fastcgi
-version:         0.4.2
+version:         1.0.0
 license:         BSD3
 license-file:    LICENSE
 author:          Michael Snoyman <michael@snoyman.com>
@@ -15,10 +15,13 @@
 
 library
     build-depends:   base              >= 4           && < 5
-                   , wai               >= 0.4         && < 0.5
-                   , wai-extra         >= 0.4         && < 0.5
+                   , wai               >= 1.0         && < 1.1
+                   , wai-extra         >= 1.0         && < 1.1
                    , bytestring                >= 0.9.1.4  && < 0.10
     exposed-modules: Network.Wai.Handler.FastCGI
     ghc-options:     -Wall
     includes:        fcgiapp.h
     extra-libraries: fcgi
+
+    if impl(ghc >= 7.4)
+      cpp-options:     -DGHC_7_4
