added test for the old cvHaarDetectObjects. disabled AVX optimization in haar.cpp. it should cover tickets #2534, #2591, #2669
disabled the use of SSE4 instructions as well to make the code compatible with the old Intel and AMD chips
fixed compile warnings
Merge pull request #396 from vpisarev:facedetect_fixes