diff --git a/charsetdetect.cabal b/charsetdetect.cabal
--- a/charsetdetect.cabal
+++ b/charsetdetect.cabal
@@ -1,6 +1,6 @@
+Cabal-Version:       >= 1.10
 Name:                charsetdetect
-Version:             1.1.0.2
-Cabal-Version:       >= 1.6
+Version:             1.1.0.3
 Category:            Text
 Synopsis:            Character set detection using Mozilla's Universal Character Set Detector
 Description:         Mozilla have developed a robust and efficient character set detection algorithm for
@@ -63,8 +63,10 @@
 Library
         Exposed-Modules:        Codec.Text.Detect
 
-        Build-Depends:          base >= 4.2.0.2 && < 5, bytestring >= 0.9.1.7
+        Build-Depends:          base >= 4.2.0.2 && < 5, bytestring >= 0.9.1.7 && < 0.13
 
+        default-language: Haskell98
+
         -- Needed to ensure correct build on GHC 7.6 when imported by a
         -- library which uses Template Haskell.
         --
@@ -74,14 +76,7 @@
             cc-options: -fno-weak
             c-sources: cbits/dso_handle.c
 
-        -- This is a bit dodgy since g++ might link in more stuff, but will probably work in practice:
-        if os(windows)
-          if arch(x86_64)
-            extra-libraries:    stdc++-6 gcc_s_seh-1
-          else
-            extra-libraries:    stdc++-6 gcc_s_dw2-1
-        else
-          extra-libraries:      stdc++
+        extra-libraries: stdc++
 
         Include-Dirs:           libcharsetdetect
                                 libcharsetdetect/mozilla/extensions/universalchardet/src/base
