RFC: Avoid warnings in MSVC builds, add flag for similar warnings for GCC/Clang
I'm sure that some of these changes are more acceptable than others; I can split them up in separate merge requests if there are things that are OK to be merged soon while others require more discussion.
This is an alternative to !563 (closed).