fixed more build warnings and opencv_perf_stitching failure