Replace strcpy, ctime, etc with strcpy_s, ctime_s, etc.

Demos remain unchanged.