Detect popcnt instruction at runtime, use it if available.