Use MSVC when running tests

This should fix the compile error in appveyor, e.g. https://ci.appveyor.com/project/Astropy/astropy/build/1.0.26/job/as43458gtxrs49d6#L974