signal handlers are set up, the blocking flags for sockets are set, and which thread-related functions are used. (Bug #8731)