Add _CRT_SECURE_NO_DEPRECATE to get VS to STFU about perfectly safe and useful POSIX functions
Numerous type tweaks to stifle VC++ warnings