diff --git a/configure.ac b/configure.ac
--- a/configure.ac
+++ b/configure.ac
@@ -1,3 +1,4 @@
+AC_MSG_NOTICE([$host])
 AC_PREREQ([2.60])
 AC_INIT([fltkc], [0.1], [aditya dawt siram ayt gmail dawt com])
 AC_CONFIG_SRCDIR([c-src/Fl_C.h])
@@ -13,15 +14,7 @@
 # Checks for header files.
 AC_CHECK_HEADERS([stddef.h stdint.h stdlib.h string.h unistd.h])
 AC_CHECK_LIB([dl], [main])
-
-case $MSYSTEM in
-*MINGW*)
-   AC_SUBST(FLTKCONFIGCOMMAND,"$(fltk-config --ldflags --use-gl --use-glut --use-images --use-forms) -lstdc++")
-   ;;
-*)
-   AC_SUBST(FLTKCONFIGCOMMAND,"$(fltk-config --ldstaticflags --use-gl --use-glut --use-images --use-forms) -lstdc++")
-   ;;
-esac
+AC_SUBST(FLTKCONFIGCOMMAND,"$(fltk-config --ldstaticflags --use-gl --use-glut --use-images --use-forms) -lstdc++")
 
 AC_SUBST(FLTK_HOME,`fltk-config --includedir`)
 # Checks for typedefs, structures, and compiler characteristics.
diff --git a/fltkhs.cabal b/fltkhs.cabal
--- a/fltkhs.cabal
+++ b/fltkhs.cabal
@@ -1,5 +1,5 @@
 name : fltkhs
-version : 0.5.0.8
+version : 0.5.0.9
 synopsis : FLTK bindings
 description:
     Low level bindings for the FLTK GUI toolkit. For installation and quick start instruction please scroll all the way down to the README.
@@ -135,7 +135,9 @@
 custom-setup
   setup-depends:
     base >= 4.5 && < 4.11,
-    Cabal < 1.25
+    Cabal < 1.25,
+    filepath,
+    directory
 
 Executable fltkhs-fluidtohs
   Main-Is: Main.hs
