Don't test for sched_yield on Windows

Only test for sched_yield on non-Windows platforms, since it breaks under MingW. sched_yield ought to be tested for on platforms other than Solaris, since it is required. Fixes #45.