Fixing suitable warning flags for MSVC + fixing a few common warnings.