msvc: fix warnings
msvc: make MSVC shutup on strncpy()