Fixed sched_getaffinity/sched_setaffinity to work on RH