issue #2271: Fixing some memory leaks. [VS2012] Updating project dependence and warning fixes.