fix sched compile error for mac & ios