Fix some VC specific warnings

Fixed some VC specific (mainly about security) warnings.