Fixed some win32 warnings.

* Signed/unsigned.
* _s safe string functions.