diff --git a/CV.cabal b/CV.cabal
--- a/CV.cabal
+++ b/CV.cabal
@@ -1,5 +1,5 @@
 Name:				 CV
-Version:             0.3.0.1
+Version:             0.3.0.2
 Description:         OpenCV Bindings
 License:             GPL
 License-file:        LICENSE
@@ -7,11 +7,19 @@
 Synopsis:            OpenCV based machine vision library
 Description:         This is a machine vision package that wraps some functionality
                      of OpenCV library. This package has been developed for personal use and
-                     is not meant to be a complete wrapper, though it will most likely grow to
-                     cover most of functionaly exposed by OpenCV C interface.
-
+                     is not meant to be a complete wrapper. It also includes some things not
+                     in OpenCV.
+                     .
                      Currently this package is quite dirty and requires much work on documentation
                      and code clean-up, but is somewhat tested.
+                     .
+                     (The scarce) Documentation is available at 
+                      <http://users.jyu.fi/~aleator/CV-0.3.0.2/html/index.html>
+                     .
+                     Changelog.
+                     0.3.0.2 - Workaround for compiling with OS X 10.6 & fixed errors about M_PI
+                     .
+
 Author:              Ville Tirronen
 Maintainer:          ville.tirronen@jyu.fi
 Build-Type:          Simple
@@ -29,7 +37,7 @@
     Includes:          opencv/cv.h, opencv/cxcore.h, opencv/highgui.h, CV/cvWrapLEO.h
     c-sources:         CV/cvWrapLEO.c
     install-includes:  CV/cvWrapLEO.h
-    cc-options:        --std=c99 
+    cc-options:        --std=c99 -U__BLOCKS__
     extra-libraries:   opencv_calib3d,opencv_contrib,opencv_core,opencv_features2d,opencv_highgui,opencv_imgproc,opencv_legacy,opencv_ml,opencv_objdetect,opencv_video
      
     Build-Depends:     haskell98, base >= 3 && < 5, parallel > 1.1, unix > 2.3, array >= 0.2.0.0,
diff --git a/CV/cvWrapLEO.h b/CV/cvWrapLEO.h
--- a/CV/cvWrapLEO.h
+++ b/CV/cvWrapLEO.h
@@ -4,6 +4,10 @@
 #ifndef __CVWRAP__
 #define __CVWRAP__
 
+#ifndef M_PI
+#define M_PI           3.14159265358979323846
+#endif
+
 #include <opencv/cv.h>
 #include <opencv/cxcore.h>
 #include <opencv/highgui.h>
