Add platform wrappers for yielding threads