diff --git a/persistent-sqlite.cabal b/persistent-sqlite.cabal
--- a/persistent-sqlite.cabal
+++ b/persistent-sqlite.cabal
@@ -1,5 +1,5 @@
 name:            persistent-sqlite
-version:         1.3.0.2
+version:         1.3.0.3
 license:         MIT
 license-file:    LICENSE
 author:          Michael Snoyman <michael@snoyman.com>
@@ -8,13 +8,17 @@
 description:     This package includes a thin sqlite3 wrapper based on the direct-sqlite package, as well as the entire C library, so there are no system dependencies.
 category:        Database, Yesod
 stability:       Stable
-cabal-version:   >= 1.6
+cabal-version:   >= 1.8
 build-type:      Simple
 homepage:        http://www.yesodweb.com/book/persistent
+bug-reports:     https://github.com/yesodweb/persistent/issues
 
 flag systemlib
   description: Use the system-wide sqlite library
   default: False
+flag build-sanity-exe
+  description: Build a sanity check test executable
+  default: False
 
 library
     build-depends:   base                    >= 4         && < 5
@@ -35,6 +39,18 @@
     else
         c-sources:   cbits/sqlite3.c
 
+    if !os(windows)
+        extra-libraries: pthread
+
 source-repository head
   type:     git
   location: git://github.com/yesodweb/persistent.git
+
+executable sanity
+    if flag(build-sanity-exe)
+        buildable: True
+    else
+        buildable: False
+    main-is: sanity.hs
+    hs-source-dirs: test
+    build-depends: base, persistent-sqlite
diff --git a/test/sanity.hs b/test/sanity.hs
new file mode 100644
--- /dev/null
+++ b/test/sanity.hs
@@ -0,0 +1,8 @@
+{-# LANGUAGE OverloadedStrings #-}
+{-# LANGUAGE TemplateHaskell #-}
+import Database.Persist.Sqlite
+
+$(return []) -- just force TH to run
+
+main :: IO ()
+main = withSqliteConn ":memory:" $ const $ return ()
