Move the scheduler picking #ifdef after sched.h is included...