Add some essentials for building c++ extensions on Windows (#22563)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/22489.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/22563
Differential Revision: D16142615
Pulled By: ezyang
fbshipit-source-id: d7c27a874f788dd27065fad6699485e4a6372ec4