Fixed several issues under windows

* Incorrect assert condition in `test_stereomatching.cpp`
* nonfree test failure (now run gpu tests only on one device)
* warnings