title: OpenCV error when running make CentOS
body: <p>I am trying to install OpenCV 2.4.2 on CentOS 5.8 but I get the following error</p>
  
  <pre><code>[ 34%] Built target opencv_test_highgui
  [ 34%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/freak.cpp.o
  /home/jtrinidad/Downloads/OpenCV-2.4.2/modules/core/include/opencv2/core/core.hpp:1286: warning: ‘class cv::_InputArray’ has virtual functions but non-virtual destructor
  /home/jtrinidad/Downloads/OpenCV-2.4.2/modules/core/include/opencv2/core/core.hpp:1365: warning: ‘class cv::_OutputArray’ has virtual functions but non-virtual destructor
  /home/jtrinidad/Downloads/OpenCV-2.4.2/modules/features2d/src/freak.cpp: In member function ‘virtual void cv::FREAK::computeImpl(const cv::Mat&amp;, std::vector&lt;cv::KeyPoint, std::allocator&lt;cv::KeyPoint&gt; &gt;&amp;, cv::Mat&amp;) const’:
  /home/jtrinidad/Downloads/OpenCV-2.4.2/modules/features2d/src/freak.cpp:367: error: shift must be an immediate
  make[2]: *** [modules/features2d/CMakeFiles/opencv_features2d.dir/src/freak.cpp.o] Error 1
  make[1]: *** [modules/features2d/CMakeFiles/opencv_features2d.dir/all] Error 2
  make: *** [all] Error 2
  </code></pre>
  
  <p>I ran the following command on cmake</p>
  
  <pre><code> cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_EXAMPLES=OFF WITH_CUDA=OFF ..     
  </code></pre>
  
  <p>Thank you.</p>