Separate output directory from intermediate directory for MSVC2010.
Separate output directory from intermediate directory for MSVC2012.