support old linux/glibc and freebsd in get_thread_aid() (we have to iterate over the affinity mask, blech). use sched_setaffinity(0) rather than pthread_setaffinity_np() on linux
support old linux/glibc and freebsd in get_thread_aid() (we have to iterate over the affinity mask, blech). use sched_setaffinity(0) rather than pthread_setaffinity_np() on linux

dankamongmen/libtorque,dankamongmen/libtorque,dankamongmen/libtorque