Do not use -pthread option on WIN32
Fix `il_indices` on MSVC
Avoid warning C4800
Avoid shadowing warning
Fix more constexpr issues on MSVC