Auto configuration for OpenCV on VS2010 or VS2012