fix dbghelp again for cmake and msvc
fix cmake: remove two deprecated optimizations for VS