prevent compiler redefinition warnings

- I observed a massive amount of redefinition warnings after #3071, which
  are silenced by this patch
- uses the same style as we do in other places, where we define _WIN32_WINNT
Merge pull request #3081 from Diapolo/silence_compiler

prevent compiler redefinition warnings