cmake: fixed recognition of standard threading support for MSVC