OS X-flavoured build fixes
A couple fixes to avoid assuming HAVE_SETAFFINITY, and to stop the linker complaining about duplicate symbols defined in a header.
A couple fixes to avoid assuming HAVE_SETAFFINITY, and to stop the linker complaining about duplicate symbols defined in a header.