Add base support for nonblocking sockets