build: Silence some useless MSVC warnings
Get rid of some pointless warnings such as C4028: formal parameter 1 different from declaration
or C4996: 'fileno': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _fileno
which only obscures other warnings that may actually be relevant.