Proposed fix improves detection of COMPILER_FAMILY on windows and resolves the build fail in some configuration.