Fix MSVC intrinsics detection

MSVC and Clang support BitScanFoward and BitScanReverse only on Windows.
This should also fix issue #278.