Added sched_setscheduler()/sched_getscheduler()

Updated pullrequest for sched_setscheduler()
* added example/test
* Use ifdef _POSIX_PRIORITY_SCHEDULING to protect sched_setscheduler