Libc-independent ucontext implementation
