Fixes 928.
Fix version check for clang.
Fix typo
Fix typo
Fixing #928 properly
Fix inverted platform check