Opencv - Modified DBUILD flags and 32-bit option for compilation on 10.9

Error without this modification :

Linking CXX shared library ../../lib/libopencv_highgui.dylib
cd /tmp/opencv-dXBS/opencv-2.4.7.1/macbuild/modules/highgui && /usr/local/Cellar/cmake/2.8.12.1/bin/cmake -E cmake_link_script CMakeFiles/opencv_highgui.dir/link.txt --verbose=1
/usr/local/Library/ENV/4.3/clang++    -arch i386 -m32 -Wno-deprecated-declarations -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -dynamiclib -Wl,-headerpad_max_install_names   -compatibility_version 2.4.0 -current_version 2.4.7 -o ../../lib/libopencv_highgui.2.4.7.dylib -install_name /tmp/opencv-dXBS/opencv-2.4.7.1/macbuild/lib/libopencv_highgui.2.4.dylib CMakeFiles/opencv_highgui.dir/src/cap.cpp.o CMakeFiles/opencv_highgui.dir/src/cap_images.cpp.o CMakeFiles/opencv_highgui.dir/src/cap_ffmpeg.cpp.o CMakeFiles/opencv_highgui.dir/src/loadsave.cpp.o CMakeFiles/opencv_highgui.dir/src/utils.cpp.o CMakeFiles/opencv_highgui.dir/src/window.cpp.o CMakeFiles/opencv_highgui.dir/src/window_cocoa.mm.o CMakeFiles/opencv_highgui.dir/src/cap_qtkit.mm.o CMakeFiles/opencv_highgui.dir/src/grfmt_base.cpp.o CMakeFiles/opencv_highgui.dir/src/grfmt_bmp.cpp.o CMakeFiles/opencv_highgui.dir/src/grfmt_exr.cpp.o CMakeFiles/opencv_highgui.dir/src/grfmt_imageio.cpp.o CMakeFiles/opencv_highgui.dir/src/grfmt_jpeg.cpp.o CMakeFiles/opencv_highgui.dir/src/grfmt_jpeg2000.cpp.o CMakeFiles/opencv_highgui.dir/src/grfmt_png.cpp.o CMakeFiles/opencv_highgui.dir/src/grfmt_pxm.cpp.o CMakeFiles/opencv_highgui.dir/src/grfmt_sunras.cpp.o CMakeFiles/opencv_highgui.dir/src/grfmt_tiff.cpp.o CMakeFiles/opencv_highgui.dir/src/bitstrm.cpp.o ../../lib/libopencv_core.2.4.7.dylib ../../lib/libopencv_imgproc.2.4.7.dylib /usr/lib/libz.dylib /usr/local/lib/libjpeg.dylib /usr/local/lib/libpng.dylib /usr/lib/libz.dylib -framework libtiff ../../3rdparty/lib/liblibjasper.a ../../3rdparty/lib/libIlmImf.a -framework Cocoa -framework QTKit -framework QuartzCore -framework AppKit ../../lib/libopencv_core.2.4.7.dylib /usr/lib/libz.dylib 
Undefined symbols for architecture x86_64:
  "_TIFFClose", referenced from:
      cv::TiffDecoder::close() in grfmt_tiff.cpp.o
      cv::TiffDecoder::~TiffDecoder() in grfmt_tiff.cpp.o
      cv::TiffDecoder::readHeader() in grfmt_tiff.cpp.o
      cv::TiffDecoder::readData(cv::Mat&) in grfmt_tiff.cpp.o
      cv::TiffEncoder::writeLibTiff(cv::Mat const&, std::__1::vector<int, std::__1::allocator<int> > const&) in grfmt_tiff.cpp.o
  "_TIFFGetField", referenced from:
      cv::TiffDecoder::readHeader() in grfmt_tiff.cpp.o
      cv::TiffDecoder::readData(cv::Mat&) in grfmt_tiff.cpp.o
  "_TIFFIsTiled", referenced from:
      cv::TiffDecoder::readData(cv::Mat&) in grfmt_tiff.cpp.o
  "_TIFFOpen", referenced from:
      cv::TiffDecoder::readHeader() in grfmt_tiff.cpp.o
      cv::TiffEncoder::writeLibTiff(cv::Mat const&, std::__1::vector<int, std::__1::allocator<int> > const&) in grfmt_tiff.cpp.o
  "_TIFFRGBAImageOK", referenced from:
      cv::TiffDecoder::readData(cv::Mat&) in grfmt_tiff.cpp.o
  "_TIFFReadEncodedStrip", referenced from:
      cv::TiffDecoder::readData(cv::Mat&) in grfmt_tiff.cpp.o
  "_TIFFReadEncodedTile", referenced from:
      cv::TiffDecoder::readData(cv::Mat&) in grfmt_tiff.cpp.o
  "_TIFFReadRGBAStrip", referenced from:
      cv::TiffDecoder::readData(cv::Mat&) in grfmt_tiff.cpp.o
  "_TIFFReadRGBATile", referenced from:
      cv::TiffDecoder::readData(cv::Mat&) in grfmt_tiff.cpp.o
  "_TIFFScanlineSize", referenced from:
      cv::TiffEncoder::writeLibTiff(cv::Mat const&, std::__1::vector<int, std::__1::allocator<int> > const&) in grfmt_tiff.cpp.o
  "_TIFFSetErrorHandler", referenced from:
      cv::TiffDecoder::TiffDecoder() in grfmt_tiff.cpp.o
  "_TIFFSetField", referenced from:
      cv::TiffEncoder::writeLibTiff(cv::Mat const&, std::__1::vector<int, std::__1::allocator<int> > const&) in grfmt_tiff.cpp.o
  "_TIFFSetWarningHandler", referenced from:
      cv::TiffDecoder::TiffDecoder() in grfmt_tiff.cpp.o
  "_TIFFWriteScanline", referenced from:
      cv::TiffEncoder::writeLibTiff(cv::Mat const&, std::__1::vector<int, std::__1::allocator<int> > const&) in grfmt_tiff.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [lib/libopencv_highgui.2.4.7.dylib] Error 1
make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2
make: *** [all] Error 2
==> Formula
Tap: homebrew/science
Path: /usr/local/Library/Taps/homebrew-science/opencv.rb
==> Configuration
HOMEBREW_VERSION: 0.9.5
HEAD: 0118ac86057dc542112e70b6ddb7d25c608ed420
CPU: 8-core 64-bit ivybridge
OS X: 10.9.1-x86_64
Xcode: 5.0.2
CLT: 5.0.1.0.1.1382131676
X11: 2.7.4 => /opt/X11
==> ENV
HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
MAKEFLAGS: -j8
CMAKE_PREFIX_PATH: /usr/local
CMAKE_INCLUDE_PATH: /usr/include/libxml2:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers:/usr/local/opt/python/Frameworks/Python.framework/Versions/2.7/Headers:/usr/local/opt/python/Frameworks/Python.framework/Versions/2.7/Headers
CMAKE_LIBRARY_PATH: /System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
PKG_CONFIG_PATH: /usr/local/opt/libpng/lib/pkgconfig:/usr/local/opt/python/Frameworks/Python.framework/Versions/2.7/lib/pkgconfig:/usr/local/opt/python/Frameworks/Python.framework/Versions/2.7/lib/pkgconfig
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Library/ENV/pkgconfig/10.9
HOMEBREW_VERBOSE: 1
ACLOCAL_PATH: /usr/local/share/aclocal
PATH: /usr/local/opt/python/bin:/usr/local/opt/python/bin:/usr/local/Library/ENV/4.3:/usr/local/opt/cmake/bin:/usr/local/opt/pkg-config/bin:/usr/local/opt/jpeg/bin:/usr/local/opt/jasper/bin:/usr/local/opt/libpng/bin:/usr/bin:/bin:/usr/sbin:/sbin