make use of count population intrinsincs on MSVC/gcc/clang

Signed-off-by: Nuno Lopes <a-nlopes@microsoft.com>