title: OpenCV LDFlags linking issue
body: <p>I am compiling a program with the following flags and getting errors (running 64 bit os): </p>
  
  <pre><code>g++ -lm -lml -lcvaux -lhighgui -lcv -lcxcore main.o BRIEF.o -o BRIEF_demo
  </code></pre>
  
  <p>I get a bunch of undefined references: </p>
  
  <pre><code>main.cpp:(.text+0x1f6): undefined reference to `cvInitMatHeader'
  </code></pre>
  
  <p>main.cpp:(.text+0x218): undefined reference to <code>cvInitMatHeader'
  main.o: In function</code>_Z14drawQuadrangleP9_IplImageiiiiiiii8CvScalari.constprop.77':
  main.cpp:(.text+0x2d5): undefined reference to <code>cvLine'
  main.cpp:(.text+0x333): undefined reference to</code>cvLine'
  main.cpp:(.text+0x398): undefined reference to <code>cvLine'
  main.cpp:(.text+0x3f2): undefined reference to</code>cvLine'</p>
  
  <p>Anyone have an idea how to circumvent this? </p>