Make the nmake makefile working with MSVC 11 & 12 + add stresshistfactory