[travis] correct build command and install opencv 2.4

OpenCV 2.3 has a bug with clang related bug http://code.opencv.org/issues/1432 .