Static Analysis: Windows building without any warnings now :)

Many many many little code fixes!