Ifdef out some debug only stuff
Misc changes
[~] Remove the use of stdafx precompiled header