Removed C89 / non-POSIX junk.
Switched to memset_s from ad-hoc collection of memory wiping routines.