MSVC leak detection changes.

I believe ``DEBUG`` is set when compiling the project in debug mode in Qt Creator. It would be a bit non-sensical to have both ``DEBUG`` and ``_DEBUG``, perhaps have the MSVC builds set the ``DEBUG`` variable instead as well if they aren't and use that?