Rearrange #ifdefs a bit, so SIGALTSTACK overrides CPU-specific threading.