Fixed warnings from MSVC/Intel/Clang compilers

It is interesting to see how much more warnings one can get when he uses
a compiler other than gcc :-D