64 bit popcount fix for mingw