Add CPU affinity support to Windows