add solution for min stack and cleanup the msvc build.