Add popcnt target to Windows makefiles. Fix some compile warnings
on Windows. Make non-tb build default for Linux makefile.