Update due to Newlib <sys/cdefs.h> changes
Update due to header file changes
Use empty <sys/ucontext.h>
Avoid usage of stack_t type
Avoid per-CPU features
There is no main thread in RTEMS

The resolv module has a questionable fall back strategy on error.
Update due to header file changes