Changed compile script to gcc friendly c++0x
Support LSD to detect quads

Use the LineSegmentDetector [1] algorithm instead of Canny+FindContours
to detect quads in the image.

The process is about x2 slower, but it significantly improves detection
rates.

The LSD algorithm replace Canny+FindContours when the compilation flag
EXPERIMENTAL_LSD is ON.

[1]
http://docs.opencv.org/trunk/modules/imgproc/doc/feature_detection.html#linesegmentdetector
Updated the tests
Bumped to 1.3
Mark the project as explicitely C++ and bump to 1.3.1

Important for clean packaging of chilitags.
{uint->unsigned int}

The former is not standard. Bug triggered while compiling with the latest emscripten
Make dependencies on highgui and ts mandatory only necessary
Do not specify anymore required OpenCV components

Commit 50a8a7b5ba tried to be intelligent and allow compilation without
OpenCV's highgui and ts when they were not needed.

But this broke the compilation with OpenCV 2.4 because the
find_package(OpenCV QUIET COMPONENTS highgui ts) call would overwrite
the previous OpenCV configuration (which is an OpenCV bug, as far as I
understand).

To simplify the situation, we now only call
find_package(OpenCV REQUIRED): all available OpenCV headers/libraries will be
included (which should only marginally impact compilation time), and
guards check that highgui/ts are available if needed.
Merge branch 'master' of github.com:chili-epfl/chilitags