Set processor affinity for worker threads. This improves performance by 3-5% on systems that support it.
Simpler ifdefs for thread affinity.
Merge pull request #565 from ggreer/thread_affinity

Thread affinity