fix a bug that prevents opencv_python module to build together with opecv_text
fix warnings from MSVC