Fix MSVC "secure" warnings instead of (unsuccessfully) trying to disable them.