[DEBUG] MC_TRACE() outputs also id of current thread.
[DEBUG] In debug builds, output DllMain(THREAD_[AT|DE]TACH) events.
[BUILD] VS: Define DEBUG for Debug build configuration.
[HTML] Make dummy ref. counting follow best practice.

I.e. make AddRef() return 2 and Relase() return 1.
This seems to be used everywhere out there.