_MSC_VER is only defined when compiling with msc. In order to be able to
compile properly with other compilers, I've changed these checks to
_WIN32 instead, which should be defined in all cases. MSC can't compile
torch right now in any case since it doesn't support C99.