fix for CMake generated VC2010 static builds