MSVC, Clang and style warning fixes.