Fix: correct elif chain
Fix #8754: Add support for upcoming msvc-12.0

Thanks to Lars Viklund for the patch