Fix VS2013 Debug mode problems