Fix logging on windows

Variadic macros and DLL exported globals are awesome
Merge remote-tracking branch 'origin/adt-windows-logging' into adt-portability-fixes