counters: build on OS X.

We still need to find a good fallback for OS X to get the current
processor id. This just falls back to the worst case of using atomic
increments.

We also need to add the rdtscp variant for newer CPUs.