Fixed more portability issues (incorrect sigwait and sigset defines).
configure should now be able to detect the last argument to accept().