setup the following env var for vs2010
OPENCV_SOURCE : opencv source code
OPENCV_BUILD : the target build folder