Visual compilation fixes & threading fixes in running/stopping analysis.