Cleanup CPU affinity code

This cleans up the messy CPU affinity code by pulling in cpu_set_t defines
from Google's bionic repository.