Fix msvc builds
Fix conditions that would always evaluate to false