Various fixes for better MSVC support, as well as fixing an issue with calling csbuild.RediscoverFiles() from within a postPrepareBuildStep.