Merge pull request #3966 from phire/ImNotTheOnlyPersonWhoMakesThisMistake Fix broken debug builds in visual studio