Rewrote Sapphire Atomic/Thread backend on OS X