Avoid warnings and errors in VC when building debug version