atomic: use InterlockedExchangeAdd().
compat: va_copy() helper for old GCC and MSVC.
whitespace.
build: various win32 compilation fixes.