Fix define check.
Various MSVC fixes.
Merge topic 'target_compile_features' into next

fd171fb Various MSVC fixes.
ec16830 Fix define check.