context: move Mac swapcontext() to separate compilation unit