diff --git a/Setup.lhs b/Setup.lhs
--- a/Setup.lhs
+++ b/Setup.lhs
@@ -42,7 +42,7 @@
 
 removeFiles _ _ _ _ = mapM_ removeIfExists fileNames
 
-mathLinkHooks = simpleUserHooks {
+mathLinkHooks = autoconfUserHooks {
                   postConf = makeFiles
                 , postClean = removeFiles
                 }
diff --git a/mathlink.cabal b/mathlink.cabal
--- a/mathlink.cabal
+++ b/mathlink.cabal
@@ -1,5 +1,5 @@
 Name:                 mathlink
-Version:              2.0.0.3
+Version:              2.0.0.4
 Cabal-Version:        >= 1.6
 Build-Type:           Custom
 License:              BSD3
