diff --git a/Setup.hs b/Setup.hs
--- a/Setup.hs
+++ b/Setup.hs
@@ -48,8 +48,8 @@
 data LibraryType = Static | Shared
   deriving (Show, Eq)
 
-buildLibrary :: Verbosity -> FilePath -> LibraryType -> IO FilePath
-buildLibrary verbosity buildDir libType = do
+buildLibrary :: Verbosity -> FilePath -> Version -> LibraryType -> IO FilePath
+buildLibrary verbosity buildDir version libType = do
     root <- makeAbsolute =<< getCurrentDirectory
     absBuildDir <- makeAbsolute buildDir
     let cbitsBuildDir = absBuildDir </> "cbits"
@@ -74,11 +74,14 @@
             let libOptions = case libType of
                     Static -> ["--enable-static", "--disable-shared"]
                     Shared -> ["--disable-static", "--enable-shared"]
+                libOptions' = libOptions ++ case versionBranch version of
+                    [999] -> []
+                    _ -> ["--disable-maintainer-mode"]
                 fromWindows = map (\c -> if c == '\\' then '/' else c)
             rawSystemExit verbosity "sh" $ [ fromWindows configure
                                            , "--libdir=" ++ fromWindows targetDir
                                            , "--with-pic"
-                                           ] ++ libOptions
+                                           ] ++ libOptions'
 
     rawSystemExit verbosity "make" ["-C", targetDir, "--no-print-directory", "install"]
 
@@ -96,7 +99,7 @@
     if not wantSIMD
     then return packageDescription
     else do
-        libDir <- buildLibrary verbosity buildDir buildType
+        libDir <- buildLibrary verbosity buildDir (pkgVersion $ package packageDescription) buildType
 
         let updateBuildInfo buildInfo = buildInfo {
               extraLibDirs = libDir : extraLibDirs buildInfo
diff --git a/cbits/configure b/cbits/configure
--- a/cbits/configure
+++ b/cbits/configure
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for reedsolomon 0.0.1.1.
+# Generated by GNU Autoconf 2.69 for reedsolomon 0.0.1.2.
 #
 # Report bugs to <https://github.com/NicolasT/reedsolomon/issues>.
 #
@@ -590,8 +590,8 @@
 # Identity of this package.
 PACKAGE_NAME='reedsolomon'
 PACKAGE_TARNAME='reedsolomon'
-PACKAGE_VERSION='0.0.1.1'
-PACKAGE_STRING='reedsolomon 0.0.1.1'
+PACKAGE_VERSION='0.0.1.2'
+PACKAGE_STRING='reedsolomon 0.0.1.2'
 PACKAGE_BUGREPORT='https://github.com/NicolasT/reedsolomon/issues'
 PACKAGE_URL='https://github.com/NicolasT/reedsolomon'
 
@@ -1316,7 +1316,7 @@
   # Omit some internal or obsolete options to make the list less imposing.
   # This message is too long to be a string in the A/UX 3.1 sh.
   cat <<_ACEOF
-\`configure' configures reedsolomon 0.0.1.1 to adapt to many kinds of systems.
+\`configure' configures reedsolomon 0.0.1.2 to adapt to many kinds of systems.
 
 Usage: $0 [OPTION]... [VAR=VALUE]...
 
@@ -1386,7 +1386,7 @@
 
 if test -n "$ac_init_help"; then
   case $ac_init_help in
-     short | recursive ) echo "Configuration of reedsolomon 0.0.1.1:";;
+     short | recursive ) echo "Configuration of reedsolomon 0.0.1.2:";;
    esac
   cat <<\_ACEOF
 
@@ -1495,7 +1495,7 @@
 test -n "$ac_init_help" && exit $ac_status
 if $ac_init_version; then
   cat <<\_ACEOF
-reedsolomon configure 0.0.1.1
+reedsolomon configure 0.0.1.2
 generated by GNU Autoconf 2.69
 
 Copyright (C) 2012 Free Software Foundation, Inc.
@@ -1972,7 +1972,7 @@
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
-It was created by reedsolomon $as_me 0.0.1.1, which was
+It was created by reedsolomon $as_me 0.0.1.2, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   $ $0 $@
@@ -2840,7 +2840,7 @@
 
 # Define the identity of the package.
  PACKAGE='reedsolomon'
- VERSION='0.0.1.1'
+ VERSION='0.0.1.2'
 
 
 cat >>confdefs.h <<_ACEOF
@@ -13290,7 +13290,7 @@
 # report actual input values of CONFIG_FILES etc. instead of their
 # values after options handling.
 ac_log="
-This file was extended by reedsolomon $as_me 0.0.1.1, which was
+This file was extended by reedsolomon $as_me 0.0.1.2, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
@@ -13357,7 +13357,7 @@
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 ac_cs_version="\\
-reedsolomon config.status 0.0.1.1
+reedsolomon config.status 0.0.1.2
 configured by $0, generated by GNU Autoconf 2.69,
   with options \\"\$ac_cs_config\\"
 
diff --git a/reedsolomon.cabal b/reedsolomon.cabal
--- a/reedsolomon.cabal
+++ b/reedsolomon.cabal
@@ -1,5 +1,5 @@
 Name:                reedsolomon
-Version:             0.0.1.1
+Version:             0.0.1.2
 Synopsis:            Reed-Solomon Erasure Coding in Haskell
 Description:         Please see README.md
 Homepage:            http://github.com/NicolasT/reedsolomon
