Nix deprecation and unsafe warnings in Visual C++.