configure: Add a check for sys/ucontext.h and include it where appropriate.