diff --git a/UI/HSCurses/CWString.hsc b/UI/HSCurses/CWString.hsc
--- a/UI/HSCurses/CWString.hsc
+++ b/UI/HSCurses/CWString.hsc
@@ -226,7 +226,6 @@
                     return x
                 e -> error $ "HSCurses.CWString.wcsrtombs: impossible case: "++show e
 
-#def HsInt hs_get_mb_cur_max () { return MB_CUR_MAX; }
 foreign import ccall unsafe hs_get_mb_cur_max :: IO Int
 
 mb_cur_max :: Int
diff --git a/UI/HSCurses/Curses.hsc b/UI/HSCurses/Curses.hsc
--- a/UI/HSCurses/Curses.hsc
+++ b/UI/HSCurses/Curses.hsc
@@ -595,7 +595,6 @@
     color_content :: CShort -> Ptr CShort -> Ptr CShort -> Ptr CShort -> IO CInt
 
 foreign import ccall unsafe "HSCurses.h hs_curses_color_pair" colorPair :: Pair -> ChType
-#def chtype hs_curses_color_pair (HsInt pair) {return COLOR_PAIR (pair);}
 
 -------------
 -- Attributes
diff --git a/cbits/HSCursesUtils.c b/cbits/HSCursesUtils.c
--- a/cbits/HSCursesUtils.c
+++ b/cbits/HSCursesUtils.c
@@ -10,3 +10,12 @@
     getyx(win, *y, *x);
 }
 
+chtype hs_curses_color_pair(HsInt pair)
+{
+    return COLOR_PAIR (pair);
+}
+
+HsInt hs_get_mb_cur_max()
+{
+    return MB_CUR_MAX;
+}
diff --git a/cbits/HSCursesUtils.h b/cbits/HSCursesUtils.h
--- a/cbits/HSCursesUtils.h
+++ b/cbits/HSCursesUtils.h
@@ -2,7 +2,13 @@
 #define HSCURSESUTILS_H
 
 #include "HSCurses.h"
+#include "HsFFI.h"
+#include <stdlib.h>
 
-extern void hscurses_nomacro_getyx(WINDOW *win, int *y, int *x);
+extern void hscurses_nomacro_getyx(WINDOW *win, int *y, int *x );
+
+extern chtype hs_curses_color_pair(HsInt pair );
+
+extern HsInt hs_get_mb_cur_max();
 
 #endif  // HSCURSESUTILS_H
diff --git a/hscurses.cabal b/hscurses.cabal
--- a/hscurses.cabal
+++ b/hscurses.cabal
@@ -1,5 +1,5 @@
 Name:           hscurses
-Version:        1.3.0.1
+Version:        1.3.0.2
 License:        LGPL
 License-file:   LICENSE
 Author:         John Meacham <john at repetae dot net>
@@ -37,6 +37,7 @@
 Data-files:
     README, TODO, example/contacts2, example/Setup.hs, example/ContactManager.hs,
     example/cm.cabal, example/contacts
+extra-libraries: ncurses
 Extra-source-files:
     UI/HSCurses/Curses.hsc,
     UI/HSCurses/CursesHelper.hs, UI/HSCurses/CWString.hsc, UI/HSCurses/Widgets.hs,
@@ -45,4 +46,4 @@
 
 Extensions:       CPP, ForeignFunctionInterface, GeneralizedNewtypeDeriving, ScopedTypeVariables, ExistentialQuantification
 Include-dirs:     cbits .
-Ghc-options:      -funbox-strict-fields -Wall -fvia-c
+Ghc-options:      -funbox-strict-fields -Wall
