Fix OpenCV linkage for windows platform